import type { Directive } from "vue";
import permission from "./modules/permission";
import number from "./modules/number";
import integerNumber from "./modules/integer-number";
import loadMore from "./modules/load-more";
const directivesList: { [key: string]: Directive } = {
  permission,
  number,
  "integer-number": integerNumber,
  "load-more": loadMore
};

const directives = {
  install(app: any) {
    Object.keys(directivesList).forEach((key) => {
      app.directive(key, directivesList[key]);
    });
  }
};
export default directives;
